package com.liushuai.eas.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.liushuai.eas.pojo.Classes;
import com.liushuai.eas.pojo.Major;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ClassesMapper extends BaseMapper<Classes> {

    //查询所有
    List<Classes> queryClassesList(int pageBegin, int pageEnd);

    //查询所有通过关键字
    List<Classes> queryClassesListBySearch(int pageBegin,int pageEnd,String search);

    //查询总数
    int queryTotal();

    //查询总数通过关键字
    int queryTotalBySearch(String search);

    //根据ID查找
    Classes selectOne(Integer id);

    //查询班级通过班级名
    Classes queryClassesByName(String name);

}
